/**
 * Created by hiibook on 2017/6/15.
 */
var express = require('express');
var router = express.Router();
var wechatVerification =require('../middleware/wechatVerification');//微信请求来源分析
var wechatMessageAnalyze =require('../middleware/wechatMessageAnalyze');//微信post消息解析
var wechatIsRegistered =require('../middleware/wechatIsRegistered');//注册用户判断
var wechatUserRegistered =require('../middleware/wechatUserRegistered');//用户注册
var wechatCheckIn =require('../middleware/wechatCheckIn');//用户签到
var wechatResetPassword =require('../middleware/wechatResetPassword');//用户签到
var wechatNodeList =require('../middleware/wechatNodeList');//服务器列表
var wechatNodeConfig =require('../middleware/wechatNodeConfig');//服务器配置
var wechatHelp =require('../middleware/wechatHelp');//帮助
var wechatGiftCode =require('../middleware/wechatGiftCode');// 礼品码
var wechatGenerateGiftCode = require('../middleware/wechatGenerateGiftCode');// 生成礼品码
var wechatMyInfo =require('../middleware/wechatMyInfo');//查看个人信息
var wechatSubscribe =require('../middleware/wechatSubscribe');//关注/取消关注事件
var wechatDefault =require('../middleware/wechatDefault');//默认处理器
/* GET users listing. */
router.get('/',wechatVerification);//微信请求来源分析
router.post('/', wechatMessageAnalyze);//解析微信请求
router.post('/', wechatIsRegistered);//获取用户信息
router.post('/',wechatUserRegistered);//注册
router.post('/',wechatResetPassword);//设置密码
router.post('/',wechatNodeList);//查看节点
router.post('/',wechatNodeConfig);//查看配置
router.post('/',wechatCheckIn);//签到
router.post('/',wechatHelp);//帮助
// router.post('/',wechatGiftCode);// 礼品码
router.post('/',wechatGenerateGiftCode);// 生成礼品码
router.post('/',wechatMyInfo);//查看个人信息
router.post('/',wechatSubscribe);//关注/取消关注事件
router.post('/',wechatDefault);// 默认
module.exports = router;
